package com.cmc.cloud.cmclink.doc.api.document.emums;

import lombok.Getter;

/**
 * 付款方式
 *
 * @author dev89
 * @date 2025/08/18 09:23
 **/
public enum PaymentEnum {
    /**
     * A
     */
    A("A", "A", "A"),

    /**
     * C
     */
    C("C", "C", "COLLECT"),

    /**
     * R
     */
    R("R", "R", "R"),

    /**
     * M
     */
    M("M", "M", "M"),

    /**
     * P
     */
    P("P", "P", "PREPAID");

    @Getter
    private final String value;

    @Getter
    private final String label;

    @Getter
    private final String name;

    PaymentEnum(String value, String label, String name) {
        this.value = value;
        this.label = label;
        this.name = name;
    }

    public static String getNameByValue(String value) {
        return PaymentEnum.valueOf(value).getName();
    }
}
